package com.qidian.mes.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author dqy
 * @Description
 * @Time 2024/5/4 13:38
 */
public class OrderRequire {
    private Long requireId; // 物料需求id
    private Long woId; // 工单id
    private Long matId; // 物料编码
    private String matName; // 物料名称
    private String matModel; // 物料规格
    private String matUnit; // 物料单位
    private Integer matStockStatus; // 物料供应状态
    private Integer matCount; // 物料库存
    private Long proId; // 产品编码
    private String proName; // 产品名称
    private String proModel; // 产品规格
    private String proUnit; // 产品单位
    private Integer proStockStatus; // 产品供应状态
    private Integer proCount; // 产品库存
    private Integer category; // 产品物料分类 0：物料 1：产品
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date requireTime; // 需求日期
    private Integer requireNum; // 需求数量

    public OrderRequire() {
    }

    public OrderRequire(Long requireId, Long woId, Long matId, String matName, String matModel, String matUnit, Integer matStockStatus, Integer matCount, Long proId, String proName, String proModel, String proUnit, Integer proStockStatus, Integer proCount, Integer category, Date requireTime, Integer requireNum) {
        this.requireId = requireId;
        this.woId = woId;
        this.matId = matId;
        this.matName = matName;
        this.matModel = matModel;
        this.matUnit = matUnit;
        this.matStockStatus = matStockStatus;
        this.matCount = matCount;
        this.proId = proId;
        this.proName = proName;
        this.proModel = proModel;
        this.proUnit = proUnit;
        this.proStockStatus = proStockStatus;
        this.proCount = proCount;
        this.category = category;
        this.requireTime = requireTime;
        this.requireNum = requireNum;
    }

    @Override
    public String toString() {
        return "OrderRequire{" +
                "requireId=" + requireId +
                ", woId=" + woId +
                ", matId=" + matId +
                ", matName='" + matName + '\'' +
                ", matModel='" + matModel + '\'' +
                ", matUnit='" + matUnit + '\'' +
                ", matStockStatus=" + matStockStatus +
                ", matCount=" + matCount +
                ", proId=" + proId +
                ", proName='" + proName + '\'' +
                ", proModel='" + proModel + '\'' +
                ", proUnit='" + proUnit + '\'' +
                ", proStockStatus=" + proStockStatus +
                ", proCount=" + proCount +
                ", category=" + category +
                ", requireTime=" + requireTime +
                ", requireNum=" + requireNum +
                '}';
    }

    public Long getRequireId() {
        return requireId;
    }

    public void setRequireId(Long requireId) {
        this.requireId = requireId;
    }

    public Long getWoId() {
        return woId;
    }

    public void setWoId(Long woId) {
        this.woId = woId;
    }

    public Long getMatId() {
        return matId;
    }

    public void setMatId(Long matId) {
        this.matId = matId;
    }

    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    public String getMatModel() {
        return matModel;
    }

    public void setMatModel(String matModel) {
        this.matModel = matModel;
    }

    public String getMatUnit() {
        return matUnit;
    }

    public void setMatUnit(String matUnit) {
        this.matUnit = matUnit;
    }

    public Integer getMatStockStatus() {
        return matStockStatus;
    }

    public void setMatStockStatus(Integer matStockStatus) {
        this.matStockStatus = matStockStatus;
    }

    public Integer getMatCount() {
        return matCount;
    }

    public void setMatCount(Integer matCount) {
        this.matCount = matCount;
    }

    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProModel() {
        return proModel;
    }

    public void setProModel(String proModel) {
        this.proModel = proModel;
    }

    public String getProUnit() {
        return proUnit;
    }

    public void setProUnit(String proUnit) {
        this.proUnit = proUnit;
    }

    public Integer getProStockStatus() {
        return proStockStatus;
    }

    public void setProStockStatus(Integer proStockStatus) {
        this.proStockStatus = proStockStatus;
    }

    public Integer getProCount() {
        return proCount;
    }

    public void setProCount(Integer proCount) {
        this.proCount = proCount;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public Date getRequireTime() {
        return requireTime;
    }

    public void setRequireTime(Date requireTime) {
        this.requireTime = requireTime;
    }

    public Integer getRequireNum() {
        return requireNum;
    }

    public void setRequireNum(Integer requireNum) {
        this.requireNum = requireNum;
    }
}
